package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysVideoCommentsMapper;
import com.ruoyi.system.domain.SysVideoComments;
import com.ruoyi.system.service.ISysVideoCommentsService;

/**
 * 视频评论Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-19
 */
@Service
public class SysVideoCommentsServiceImpl implements ISysVideoCommentsService 
{
    @Autowired
    private SysVideoCommentsMapper sysVideoCommentsMapper;

    /**
     * 查询视频评论
     * 
     * @param id 视频评论主键
     * @return 视频评论
     */
    @Override
    public SysVideoComments selectSysVideoCommentsById(Long id)
    {
        return sysVideoCommentsMapper.selectSysVideoCommentsById(id);
    }

    /**
     * 查询视频评论列表
     * 
     * @param sysVideoComments 视频评论
     * @return 视频评论
     */
    @Override
    public List<SysVideoComments> selectSysVideoCommentsList(SysVideoComments sysVideoComments)
    {
        return sysVideoCommentsMapper.selectSysVideoCommentsList(sysVideoComments);
    }

    /**
     * 新增视频评论
     * 
     * @param sysVideoComments 视频评论
     * @return 结果
     */
    @Override
    public int insertSysVideoComments(SysVideoComments sysVideoComments)
    {
        return sysVideoCommentsMapper.insertSysVideoComments(sysVideoComments);
    }

    /**
     * 修改视频评论
     * 
     * @param sysVideoComments 视频评论
     * @return 结果
     */
    @Override
    public int updateSysVideoComments(SysVideoComments sysVideoComments)
    {
        return sysVideoCommentsMapper.updateSysVideoComments(sysVideoComments);
    }

    /**
     * 批量删除视频评论
     * 
     * @param ids 需要删除的视频评论主键
     * @return 结果
     */
    @Override
    public int deleteSysVideoCommentsByIds(Long[] ids)
    {
        return sysVideoCommentsMapper.deleteSysVideoCommentsByIds(ids);
    }

    /**
     * 删除视频评论信息
     * 
     * @param id 视频评论主键
     * @return 结果
     */
    @Override
    public int deleteSysVideoCommentsById(Long id)
    {
        return sysVideoCommentsMapper.deleteSysVideoCommentsById(id);
    }
}
